package com.xiaozhichao.consumer002.config;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "provider",fallback = ConsumerFallback.class)
public interface Consumer {

    @RequestMapping(value = "/test/hello/{name}")
    String hello(@PathVariable("name") String name);

}
